package config

import java.text.SimpleDateFormat
import java.util.Date

import com.alipay.api.AlipayClient

trait  AliPayProperties {
  // 签名类型
  val signType = "RSA2"
  // 编码格式
  val charset = "utf-8"
  // 仅支持JSON
  val format = "json"
  // 接口名称
  val method = "alipay.trade.app.pay"
  // 调用的接口版本
  val version = "1.0"
  // 支付场景
  val scene = "bar_code"

  //要支付的产品编号
  val productCode = "QUICK_MSECURITY_PAY"

  val timestamp: String = new SimpleDateFormat().format(new Date, "yyyy-MM-dd HH:mm:ss")

  def getAppid: String

  def getPrivateKey: String

  def getNotifyURL: String

  def getGateway: String

  def getAliPublicKey: String

  def getAlipayClient: AlipayClient
}
